module ApplicationHelper

	def html_list(type, elements, list_options = {}, iten_options = {} )
		if elements.empty?
		  ""
		else
		  lis = elements.map { |x| content_tag("li", x,iten_options) }
		  content_tag(type, lis, list_options)
		end
	end

	def ul(*args)
		html_list("ul", *args)
	end

	def ol(*args)
		html_list("ol", *args)
	end

end
